# tuple 只读
# 因此tuple只有index count这两个方法
nums = (1, 2, 3, 4, 5, 6, 7, 88, 9, 1, 1, 1, 2, 4, 5, 6, 7, 4, 322)
print(nums.index(4))
print(nums.count(5))

# 遍历
for i in nums:
    print(i, end=' ')
print()

# 只有一个元素的tuple用(1,)表示
t1 = (18)
t2 = (18,)
print(type(t1))
print(type(t2))
